package com.khalil.kkadmin.ai.rag.knowledgeset.repository;

import com.khalil.kkadmin.ai.rag.knowledgeset.entity.RagKnowledgeSegment;
import com.khalil.kkadmin.infrastructure.jpa.KkJpaRepository;

import java.util.List;

public interface RagKnowledgeSegmentRepository extends KkJpaRepository<RagKnowledgeSegment, Long> {
    void deleteByKnowledgeTextId(Long knowledgeTextId);

    List<RagKnowledgeSegment> findAllByKnowledgeTextId(Long knowledgeTextId);

    List<RagKnowledgeSegment> findAllByKnowledgeSetId(Long knowledgeSetId);
}
